package day05;

/**
 * @author Huangjin
 * @version 1.0
 * @date 2023/2/16 9:09
 */
public class ForDemo {
    private static final int A = 101;
    public static void main(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <=i ; j++) {
                System.out.print(j+" * "+i+" = "+j*i+"\t");
            }
            System.out.println();
        }
        for (int num = 1; num <= 9; num++) {
            if (num==4){
                //break;
                continue;
            }
            System.out.println(num+"*9="+num*9);
        }
        //
        System.out.println();
        for (int num = 1; num <= 9; num++) {
            if (num%3!=0){
                System.out.println(num+"*9="+num*9);
            }

        }
        /* int sum = 0;
        for (int i = 1; i < A; i++) {
            sum = sum+i;
        }
        System.out.println(sum);*/
        /*          sum=0
            i=1     sum=1
            i=2     sum=1+2
            i=3     sum=1+2+3
            i=4     sum=1+2+3+4
            ...     ...
            i=99    sum=1+2+...+99
            i=100   sim=1+2+3...+100
            i=101   结束循环
         */
    }

}
